import request from "@/plugins/request";

var pre = "/rv/health";

if (process.env.NODE_ENV !== "development") {
  pre = "/api/rvsa/rv-health" + pre;
}

export const ApiAdd = (data) => {
  return request({
    url: `${pre}/report/save`,
    data,
    method: "post",
  });
};


export const appAnalyze = (data) => {
  return request({
    url: `${pre}/data/analyze/getAppAnalyze?userId=${data}`,
    method: "post",
  });
};
